/*
******************
* author: 马丰彦
* date: 2019
* function: 封装登录、登出、获取权限请求
******************
*/

// 设置BOSS登录系统url
import request from '@/utils/request1'

export function login(data) {
  return request({
    url: '/system/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    // url: 'http://localhost:7300/mock/5d106fed3c9a142cd03145eb/boss-loginCenter/system/queryUserPower',
    // url: 'https://easy-mock.com/mock/5d01ad8414b05b64b29b7394/boss-loginCenter/system/queryUserPower',
    url: '/loginCenter/system/queryUserPower',
    method: 'post'
  })
}

/* export function logout() {
  return request({
    url: '/system/logout',
    method: 'post'
  })
} */

// 登出
export function logout() {
  return request({
    url: '/loginCenter/system/logout',
    method: 'post'
  })
}
